<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/9/28 0028
 * Time: 下午 6:23
 */
      $a= 1;
 while ($a <= 4){
     echo $a.'&nbsp；';
     ++$a;
 }
$line = 1;
while(sline <=5){
    $empty_pos = $star_pos = 1;
    $empty_pos =5-$line;
    $star = 2*$line-1;
    while ($empty_pos <$empty){
        echo '&nbsp；';
        ++$empty_pos;
    }
    while ($star_pos <= $star){
        echo '*';
        ++$star_pos;
    }
    echo '<br>';
    ++$line;
}